package com.ncr.travel.appmgr.model;

import java.util.List;

import org.codehaus.jackson.map.annotate.JsonDeserialize;

import com.ncr.travel.appmgr.model.shared.Screen;

/**
 * @author as185325
 * 
 */
public class ProductCategoryJson implements com.ncr.travel.appmgr.model.shared.ProductCategory {

	private Integer id;
	private String key;
	private String name;
	private List<Screen> screens;

	@Override
	public Integer getId() {
		return id;
	}

	@Override
	public void setId(Integer id) {
		this.id = id;
	}

	@Override
	public String getKey() {
		return key;
	}

	@Override
	public void setKey(String key) {
		this.key = key;
	}

	@Override
	public List<Screen> getScreens() {
		return screens;
	}

	@Override
	@JsonDeserialize(contentAs = ScreenJson.class)
	public void setScreens(List<Screen> screens) {
		this.screens = screens;
	}

	@Override
	public String getName() {
		return name;
	}

	@Override
	public void setName(String name) {
		this.name = name;
	}

}
